package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.RedPacket;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by zhangjh 2016/11/4.
 */
@Repository
public interface RedPacketRepository extends JpaRepository<RedPacket, Long>, JpaSpecificationExecutor {
    RedPacket findByIdAndIsDelete(Long redPacketId, Whether isDelete);
}
